import request from '../utils/request.js'

export default {
    //查询部分视频
    SubmitSomeVideo(page,pageSize){
        return request({
            method: 'post',
            url: `/videoservice/videoPlay/queryPageVideo`,
            data:{
                page:page,
                pageSize:pageSize
            }
        })
    },
    //根据类别名称查询所有视频
    SubmitQueryAllClassifiedVideos(videovo,page,pageSize){
        return request({
            method: 'post',
            url: `/videoservice/videoPlay/queryPageVideo`,
            data:{
                page:page,
                pageSize:pageSize,
                queryInfo:videovo
            }
        })
    },
    //根据关键字搜索视频
    SubmitSearchVideo(page,pageSize,video){
        return request({
            method: 'post',
            url: `/videoservice/videoPlay/queryPageVideo`,
            data:{
                page:page,
                pageSize:pageSize,
                queryInfo:video
            }
        })
    },
    //搜索视频个数
    SubmitSearchVideoNum(video){
        return request({
            method: 'post',
            url: `/videoservice/videoSearch/searchNum`,
            data:video
        })
    },
    //根据用户token查询视频（推荐算法）
    SubmitAlgorithm(page,pageSize){
        return request({
            method: 'post',
            url: `/videoservice/videoSearch/algorithm`,
            data:{
                page:page,
                pageSize:pageSize
            }
        })
    }
}